package com.itheima.edu.info.manager.controller;

import com.itheima.edu.info.manager.domain.Teacher;
import com.itheima.edu.info.manager.service.TeacherService;

import java.util.Scanner;

/**
 * 老师用户交互类
 */
public class TeacherController extends BaseTeacherController{
    private Scanner sc = new Scanner(System.in);


    //获取老师信息  ctrl+alt+m  抽取方法
    @Override
    public Teacher getTeacher(String sId) {
        System.out.println("请输入姓名");
        String name = sc.next();
        System.out.println("请输入年龄");
        int age = sc.nextInt();
        System.out.println("请输入生日");
        String birthday = sc.next();
        Teacher teacher = new Teacher();
        teacher.setSid(sId);
        teacher.setName(name);
        teacher.setAge(age);
        teacher.setBirthday(birthday);
        return teacher;
    }




}
